package com.lgz.dbcourse.dto;

import com.lgz.dbcourse.util.CommonUtil;
import lombok.Data;

/**
 * @Author: LGZ
 * @Date: 2021/4/10 16:40
 * @Description:
 */
@Data
public class MovieDTO {
    private Long movieId;
    private String movieName;
    private String movieDirector;
    private String mainActor;
    private String movieDuration;
    private String movieDistrict;

    public String toDialog() {
        return "<html><body>" +"影片名：" + movieName + "<br><br>" +
                "导演 ：" + movieDirector + "<br><br>" +
                "主演 ：" + mainActor + "<br><br>" +
                "时长 ：" + movieDuration + "<br><br>" +
                "地区 ：" + movieDistrict + "</body></html>";
    }

//    public String toList() {
//        return CommonUtil.flushLeft(' ', 20, movieName) + CommonUtil.flushLeft(' ', 15, movieDirector) + CommonUtil.flushLeft(' ', 40, mainActor) + CommonUtil.flushLeft(' ', 10, movieDuration) + CommonUtil.flushLeft(' ', 5, movieDistrict);
//    }
}
